package com.atguigu.inner.member;

public class Outer {//外部类
    private int outA;
    private static int outB;

     class One{//非静态的成员内部类
        public void show() {
            System.out.println("outA = " + outA);
            System.out.println("outB = " + outB);
        }

        public static void print(){
            System.out.println("haha");
        }
    }

    static class Two{//静态的成员内部类
        public void show() {
//            System.out.println("outA = " + outA);//Two类是静态的，不能直接使用外部类非静态的成员
            System.out.println("outB = " + outB);
        }

        public static void print(){
            System.out.println("xixi");
        }
    }

    public static void outShow(){
        /*One one = new One();//One是非静态的，outShow是静态的。同样静态方法不能直接使用本类其他非静态成员
        one.show();*/

        Two two = new Two();
        two.show();
    }

    public void outPrint(){
        One one = new One();
        one.show();
        Two two = new Two();
        two.show();
    }

}
